<?php

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateShopCheck extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('shop_check', function (Blueprint $table) {
            $table->increments('id');
            $table->integer('shopid')->comment('商家ID');
            $table->string('type')->comment('资料更改，翻倍日设置，上架，下架');
            $table->string('withholdtype')->comment('扣款类型，0不扣1扣一天2扣一半3扣全部');
            $table->string('reason')->default('')->comment('修改理由');
            $table->string('remark')->default('')->comment('备注');
            $table->integer('contractorid')->default(1)->comment('签约人id');
            $table->string('contractorname')->default('')->comment('签约人姓名');
            $table->integer('maintainerid')->default(1)->comment('维护人id');
            $table->string('maintainername')->default('')->comment('维护人name');
            $table->integer('adminid')->default(0)->comment('操作人id');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        //
    }
}
